package cn.wzptsoft.tinymallbe.repository;

import cn.wzptsoft.tinymallbe.entity.Spu;
import cn.wzptsoft.tinymallbe.entity.Theme;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SpuRepository extends JpaRepository<Spu,Long> {


    Page<Spu> findByCategoryId(Long categoryId, PageRequest page);

    Page<Spu> findByCategoryIdIn(List<Long> subCategoryIds, PageRequest page);
}
